<template>
	<view class="columnbox wdh-100 content">
		<view class="rowbox one-info spb" @click="showSet">
			<view>服务价格设置</view>
			<view class="rowbox">
				<view style="margin-right: 10rpx;">{{price}}元/次</view>
				<u-icon name="arrow-right" size="24rpx"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				price: 0
			};
		},
		onLoad() {

		},
		onShow() {
			this.getPrice()
		},
		methods: {
			getPrice() {
				this.$req.post('/doctor/doctorfwf', {
					doctorid: uni.getStorageSync('uid'),
				}).then(res => {
					this.price = res.data.data
				})
			},
			showSet() {
				uni.navigateTo({
					url: './set'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background: #F5F8FB;
		justify-content: flex-start;
	}

	.one-info {
		background: #fff;
		margin-top: 20rpx;
		padding: 32rpx 32rpx;
		width: 100%;
		font-size: 28rpx;
	}
</style>